<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">父级</label>
            <div class="layui-input-block">
                <?php
                $authGroup = \think\facade\Db::name('auth_group')->field('id,pid,title')->order('pid asc,id asc')->select();
                $nav = new \clt\Leftnav();
                $authGroupTree = $nav->menu($authGroup);
                $id=input('id');
?>
                <select name="pid" lay-verify="required" lay-filter="pid" >
                    {volist name="authGroupTree" id="vo"}
                    <option value="{$vo.id}" <?php if($vo['id']==$id)echo 'selected'; ?>>{$vo.lefthtml}{$vo.title}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户组名</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" placeholder="请输入用户组名" value="">
            </div>
        </div>
     <!--   <div class="layui-form-item">
            <label class="layui-form-label">规则</label>
            <div class="layui-input-block">
                <input type="text" name="rules" class="layui-input"  placeholder="请输入规则" value="">
            </div>
        </div>-->
        <div class="layui-form-item">
            <label class="layui-form-label">最大客户数</label>
            <div class="layui-input-block">
                <input type="text" name="max_customers_num" class="layui-input" lay-verify="required" placeholder="请输入最大客户数" value="0">
                <tip>当前角色组人员可最大拥有的客户数量，填写0表示不限制</tip>
            </div>
        </div>
<!--        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="text" name="status" class="layui-input"  placeholder="请输入状态" value="1">
            </div>
        </div>-->
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>